package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"xinhua_book/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//用户登录
	beego.Router("/user/login", &controllers.UserController{}, "post:Login")
	//书籍添加
	beego.Router("/book/add", &controllers.BookController{}, "post:Add")
	//收藏表展示
	beego.Router("/like/list", &controllers.LikeController{}, "get:List")
	//书籍删除
	beego.Router("/like/del", &controllers.LikeController{}, "get:Del")
}
